Skip to content

Upgrade guide: Use the new Migrate API to enable the self-closed-tags patch#224

Merged
mgol merged 2 commits intojquery:mainfrom
mgol:3.5-migrate-enable-patch
Mar 30, 2022
Merged

Upgrade guide: Use the new Migrate API to enable the self-closed-tags patch#224
mgol merged 2 commits intojquery:mainfrom
mgol:3.5-migrate-enable-patch

Conversation

@mgol
Copy link
Member

@mgol mgol commented Mar 24, 2022

Advise to use the new API:

jQuery.migrateEnablePatches( "self-closed-tags" );

instead of the deprecated one:

jQuery.UNSAFE_restoreLegacyHtmlPrefilter();

Also, fix some grammar mistakes & typos.

… patch

Advise to use the new API:
```js
jQuery.migrateEnablePatches( "self-closed-tags" );
```
instead of the deprecated one:
```js
jQuery.UNSAFE_restoreLegacyHtmlPrefilter();
```

Also, fix some grammar mistakes & typos.
@mgol mgol requested review from dmethvin and timmywil March 24, 2022 16:43
@mgol
Copy link
Member Author

mgol commented Mar 28, 2022

I added a followup commit with some fixes I missed initially. One change is that Migrate is no longer always firing warnings about potentially problematic htmlPrefilter input but only when the self-closed-tags patch is enabled.

@mgol mgol merged commit 16225c5 into jquery:main Mar 30, 2022
@mgol mgol deleted the 3.5-migrate-enable-patch branch March 30, 2022 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants